var NewApiRootUrl = 'https://tatagamaapi.zy100hui.com/api/wechat/';

// 首页
const indexUrl = {
    getBanner : NewApiRootUrl + "commodity/getBannerByType",
    getIndexCategory : NewApiRootUrl + "commodity/findIndexShowCategory",
    getGoodList : NewApiRootUrl + "commodity/findCommodityByChangeAttribute",
    FindCommodityByTarget:NewApiRootUrl + 'commodity/findCommodityByTarget',//获取商品详情
    getCouponList: NewApiRootUrl + "coupon/indexList",
    getLatestCoupon: NewApiRootUrl + "coupon/latestCoupon",
    findAllTarget: NewApiRootUrl + "commodity/findAllTarget",
    payBanner: NewApiRootUrl + "commodityOrder/payBanner"
}
// 购物车
const cartUrl = {
    cartList: NewApiRootUrl + "cart/list",
    cartUpdate: NewApiRootUrl + "cart/update",
    cartRemove: NewApiRootUrl + "cart/remove",
}
// 订单相关接口
const orderUrl = {
    preOrder: NewApiRootUrl + "commodityOrder/preOrder",
    grouponPreOrder: NewApiRootUrl + "groupon/preOrder",
    createOrder: NewApiRootUrl + "commodityOrder/createOrder",
    newcreateOrder: NewApiRootUrl + "groupon/createOrder",
    PayPrepayId: NewApiRootUrl + "commodityOrder/pay",
    GrouponPay: NewApiRootUrl + "groupon/pay",
    orderList: NewApiRootUrl + 'commodityOrder/list',
    GrouponOrderList: NewApiRootUrl + 'groupon/list',
    GrouponPickup: NewApiRootUrl + 'groupon/pickUp',
    orderDetail: NewApiRootUrl + "commodityOrder/detail",
    commodifyOrderReason: NewApiRootUrl + "commodityOrder/reason",
    createGrouponOrderAndItem: NewApiRootUrl + "groupon/createGrouponOrderAndItem",
}

// 团长相关接口
const store = {
    findAddressInfoList: NewApiRootUrl + "store/findAddressInfoList",
    // addressAllList: NewApiRootUrl + "store/findAddressInfoAllList"
    addressAllList: NewApiRootUrl + "store/findAddressInfoList"
}

const leader = {
    distList: NewApiRootUrl + "memberLeader/distList",
    activityCenter: NewApiRootUrl + "memberLeader/activityCenter",
    activityDetail: NewApiRootUrl + "memberLeader/activityDetail",
    shareCount: NewApiRootUrl + "memberLeader/shareCount",
    applyMemberLeaderUrl: NewApiRootUrl + "memberLeader/applyMemberLeader",
    invitationLeaderUrl: NewApiRootUrl + "memberLeader/agreeInvitation",
    uploadImageUrl : NewApiRootUrl + "store/uploadStoreImage", //上传图片
    getMyLeaderInfoUrl: NewApiRootUrl + "memberLeader/getMyLeaderInfo",
    addStoreInfoUrl: NewApiRootUrl + "store/addStoreInfo",
    addressInfoList : NewApiRootUrl + "memberLeader/findLeaderAddressInfoList",
    achievementUrl : NewApiRootUrl + "memberLeader/achievement",
    leaderChooseAddress : NewApiRootUrl + "memberLeader/leaderChooseAddress",
    orderSummary : NewApiRootUrl + "memberLeader/orderSummary",
    orderList : NewApiRootUrl + "memberLeader/orderList",
    orderDetail: NewApiRootUrl + "memberLeader/orderDetail",
    orderReceive: NewApiRootUrl + "memberLeader/orderReceive",
    orderPick: NewApiRootUrl + "memberLeader/orderPick",
    myWorkerList: NewApiRootUrl + "memberLeader/myWorkerList",
    getMyTeamPerson: NewApiRootUrl + "memberLeader/getMyTeamPerson",
    getMyTeamCountInfo: NewApiRootUrl + "memberLeader/getMyTeamCountInfo",
    closeDoor: NewApiRootUrl + "store/closeDoor",
    openDoor: NewApiRootUrl + "store/openDoor",
    memberLeaderWithdrawal: NewApiRootUrl + "memberLeaderWithdrawal/memberLeaderWithdrawal",
    findMemberLeaderWithdrawalListInfo: NewApiRootUrl + "memberLeaderWithdrawal/findMemberLeaderWithdrawalListInfo",
    getMyBalance: NewApiRootUrl + "memberLeader/getMyBalanceInfo",
}
// 批发供应商
const wholesaler = {
    supplierPost: NewApiRootUrl + "wholesaler/applySupplier",
    wholesalerPost: NewApiRootUrl + "wholesaler/applyWholesaler",
    wholesalerList: NewApiRootUrl + "wholesaler/findWholesalerCommodity",
    wholesalerOrderList: NewApiRootUrl + "wholesaler/findWholesalerCommodityOrder",
    orderCreate: NewApiRootUrl + "wholesaler/createWholesalerOrder",
    orderPay: NewApiRootUrl + "wholesaler/payWholesalerOrder"
}
// 供应商
const supplier = {
    goodsPost: NewApiRootUrl + "supplier/uploadCommodity",//上传供应商商品
    categoryList: NewApiRootUrl + "supplier/commodityCategoryList",//供应商商品分类列表
    goodsList: NewApiRootUrl + "supplier/commodityList",//供应商商品列表
    supplierInfo: NewApiRootUrl + "supplier/info",//供应商信息接口
    payDeposit: NewApiRootUrl + "supplier/payDeposit",//支付承保金
    applyRefund: NewApiRootUrl + "supplier/applyRefund",//申请退承保金
    findSupplierBalance: NewApiRootUrl + "supplierbalance/findSupplierBalance",//财务中心
    withdrawApply: NewApiRootUrl + "supplierbalance/addSupplierWithdrawOrder",//申请提现
    withdrawList: NewApiRootUrl + "supplierbalance/findSupplierWithdrawOrders",//提现记录
    commodityDelete: NewApiRootUrl + "supplier/commodityDelete",//供应商删除商品
    orderList: NewApiRootUrl + "supplierorder/findSupplierOrder",//订单中心
    updateStatus: NewApiRootUrl + "supplierorder/updateStatus"//配送
}
// 周边接口
const surroundings = {
    getMerchantInfoList: NewApiRootUrl + "merchant/getMerchantInfoList",
    shopCertification: NewApiRootUrl + "merchant/shopCertification",
    findMerchantCityInfoList: NewApiRootUrl + "merchant/findMerchantCityInfoList",
    getMerchantInfoById: NewApiRootUrl + "merchant/getMerchantInfoById",
    myMember: NewApiRootUrl + "merchant/getMerchantClerkInfoListByMerchantId",
    getIndexMerchant : NewApiRootUrl + "merchant/getMerchantInfoList",
    getDetailMerchant : NewApiRootUrl + "merchant/getMerchantInfoById",
    getMerchantCategoryInfoList : NewApiRootUrl + "merchant/getMerchantCategoryInfoList",
    getMerchantInfoDetail: NewApiRootUrl + "merchant/getMerchantCommodityInfoById",
    userBuy:NewApiRootUrl + "merchantOrder/memberBuyCommodity",
    applyStoreRealName: NewApiRootUrl + "merchant/applyStoreRealName",
    agreeInvitation: NewApiRootUrl + "merchant/agreeInvitation",
    openOrCloseMerchant: NewApiRootUrl + "merchant/openOrCloseMerchant",
    merchantOrderStatistics: NewApiRootUrl + "merchantOrder/merchantOrderStatistics",
    pinProduct: NewApiRootUrl + "merchantOrder/pinProduct",
    getInvitationInfo: NewApiRootUrl + "merchant/getInvitationInfo",
    applyRefundDeposit: NewApiRootUrl + "merchant/applyRefundDeposit/",
    getOrderList: NewApiRootUrl + 'merchantOrder/findMerchantOrderList',
    // getListByCategory: NewApiRootUrl + 'merchant/findMerchantInfoListByCategory',
    payDeposit: NewApiRootUrl + "merchantDepositBill/payDeposit/",
    getMerchantOrderListByMerchantId: NewApiRootUrl + 'merchantOrder/findMerchantOrderListByMerchantId',
    getListByCategory: NewApiRootUrl + 'merchant/getMerchantCommodityInfoListByCategory',
    userRefund:NewApiRootUrl + 'merchantOrder/memberApplyRefund',
    getStoreRealName: NewApiRootUrl + "merchant/getStoreRealName",
    syncMerchant: NewApiRootUrl + "merchant/syncMerchant",
}
module.exports = {
    wholesaler,
    supplier,
    indexUrl,
    cartUrl,
    orderUrl,
    store,
    leader,
    surroundings,
    CatalogList: NewApiRootUrl + 'commodity/findAllCategory', //分类目录全部分类数据接口
    AuthLoginByWeixin:NewApiRootUrl + 'member/auth',//获取token
    MemberVerify:NewApiRootUrl + 'member/verify',//验证token
    AuthLoginGetmobile:NewApiRootUrl + 'member/getPhone',//获取手机号码
    FindCommodityByChangeAttribute:NewApiRootUrl + 'commodity/findCommodityByChangeAttribute',//获取商品
    commodityDetail:NewApiRootUrl + 'commodity/detail',//获取商品详情
    commoditySharePoster:NewApiRootUrl + 'commodity/getShareImg',//获取商品分享图
    memberUpdate:NewApiRootUrl + 'member/update',//获取用户头像
    FindCommodityByTarget:NewApiRootUrl + 'commodity/findCommodityByTarget',//获取商品详情
    MemberInfo:NewApiRootUrl + 'member/info',//获取用户信息
    getDeliveryCode:NewApiRootUrl + 'member/getDeliveryCode',//获取提货码
    couponList:NewApiRootUrl + 'coupon/orderList',//获取优惠券列表
    memberCardList:NewApiRootUrl + 'memberCard/list',//获取会员卡列表
    memberCardPay:NewApiRootUrl + 'memberCard/pay',//支付会员卡
    findAddressInfoList:NewApiRootUrl + 'store/findAddressInfoList',//查询当前门店信息
    commodityOrderApply:NewApiRootUrl + 'commodityOrder/apply',//退款申请
    saveAddress: NewApiRootUrl + "store/saveAddress", //切换保存地址
};
